package com.liu.gscfqa.pojo;

import java.time.LocalDateTime;

/**
 * 课程表实体类
 */
public class Course {
    // 课程ID（主键）
    private Integer courseId;

    // 课程名称
    private String name;

    // 课程描述
    private String description;

    // 创建时间
    private LocalDateTime createTime;

    // 关联用户ID（创建者）
    private Integer userId;

    // 空构造器
    public Course() {
    }

    // 带基础参数的构造器
    public Course(String name, String description, Integer userId) {
        this.name = name;
        this.description = description;
        this.userId = userId;
    }

    // Getter和Setter方法
    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}